Skip to main content

Dimensions

Class com.devexperts.dxcharts.lib.ui.theme.DxChartDimensions contains a list of sizes for elements, paddings, and margins - all values in Dp, used in the library.

The class is passed as a parameter in DxChartsTheme.

How to override default dimensions you can find here

  • Elements are divided into 19 subclasses:
    • Aggregations - aggregation screen
    • ActionBar - top action bar
    • BottomToolbar - bottom toolbar
    • CandleInfoWidget - top widget with candle and OHLC information
    • CenterText - informational screen about the absence of elements in the list
    • ColorPicker - color selection widget
    • Common - common parameters
    • DrawingsList - drawings list
    • Events - events displayed on the chart
    • ListItem - list item
    • SettingsScreen - settings screen
    • Indicators - indicator system
    • InstrumentsList - instruments list
    • TimezonesScreen - timezone selection screen
    • NewsPopup - news displayed on the chart
    • HintCard - Hint widget
    • TradingWidget - trading widget
    • RangeSelectorWidget - timeframe preset selection widget
    • SearchRow - search row
    • Orders - trading orders

Elements have four types of values:

  • androidx.compose.ui.unit.Dp - virtual pixel unit that's roughly equal to one pixel on a medium-density screen
  • androidx.compose.foundation.layout.PaddingValues - padding values for the element with the following parameter sets: top, bottom, start, end, or vertical and horizontal. Parameters have type Dp.
  • androidx.compose.ui.unit.DpSize - element size with the following parameters: width, height. Parameters have type Dp.
  • @Composable (Unit) -> dp methods - method for calculating Сomposable values from Сompose methods.

Class Dimensions with a list of default values - https://stash.in.devexperts.com/projects/DXCHARTS/repos/dxcharts-android/browse/dxcharts_lib/src/main/java/com/devexperts/dxcharts/lib/ui/theme/Dimensions.kt